package jin.pairprogram.jan09;

public class AddF {
	int max;

	public int getMax() {
		return max;
	}

	public void setMax(int max) {
		this.max = max;
	}

	int sum(int max) {
		this.max = max;
		if (max > 1) {
			return max + sum(max - 1);
		} else {
			return 1;
		}
	}

}
